

# TODO  API 对外  响应





from typing import Optional
from pydantic import BaseModel ,Field

#  对外 API
class APIUserPwd(BaseModel):
    """  用户表 """
 
    password: str= Field(..., example="Dongrong741",description="登录账户密码",title="密码")
    

#  对外 API
class ApiUserRoot(BaseModel):
    """  用户表 """
 
    account: str = Field(..., example="OHLOP",description="登录账户",title="账户")
    


#  对外 API
class ApiUser(BaseModel):
    """  用户表 """
 
    account: str = Field(..., example="OHLOP",description="登录账户",title="账户")
    password: str= Field(..., example="Dongrong741",description="登录账户密码",title="密码")
    
#  对外 API
class ApiCookie(BaseModel):
    """  用户表 """
 
    id : Optional[int] = 0
    account: str = Field(..., example="account",description="返回指定用户的Cookie信息",title="账户")
    cookie: str= Field(..., example="cookie",description="cookie 信息",title="cookie")
    token: str= Field(..., example="token",description="token 信息",title="token")
    password: str= Field(..., example="password",description="登录账户密码",title="密码")
